package id.co.rho.scoring.cid.client.helper;

import com.extjs.gxt.ui.client.data.BaseTreeModel;
import com.google.gwt.user.client.ui.AbstractImagePrototype;

/**
 * Created by IntelliJ IDEA.
 * User: User3
 * Date: 21/07/11
 * Time: 14:11
 *
 * @author : Frizky
 * @email : frizkey@gmail.com
 * To change this template use File | Settings | File Templates.
 */
public class AbstractModelMenu extends BaseTreeModel{
	private static final long serialVersionUID = 1L;

    protected static int ID = 0;

	public AbstractImagePrototype getImage(){
       return get("image");
    }

    public Integer getId() {
        return (Integer) get("id");
    }

    public String getName() {
        return (String) get("name");
    }

    public String toString() {
        return getName();
    }
}
